#pragma once
#include "CBaseApp.h"
#include "IAudio.h"
#include "InputProcessor.h"

class CGameMap;

class CCrazyPlantApp : public CBaseApp, public IEventHandler< EInputEvent, InputMessageParam >
{
public:
	CCrazyPlantApp(void);
	~CCrazyPlantApp(void);

	virtual VBOOL	CreateScene();
	virtual VBOOL	UpdateScene( uint32 uCurTime );
	virtual void	ReleaseScene();

	virtual void	HandlerEvent( const EInputEvent& e, const InputMessageParam& p );

private:

	int32			m_uSceneID;

	HEFFECT			m_hEffect;
	HCHANNEL		m_hEffectChannel;
	HSTREAM			m_hMusic;
	HCHANNEL		m_hMusicChannel;

	int32			m_uXPrevGrid;
	int32			m_uYPrevGrid;

	CGameMap*		m_pGameMap;
};
